package com.wutianyi.module.services;

import java.util.List;

import com.wutianyi.module.product.dataobject.ProductDO;
import com.wutianyi.module.product.dataobject.ProductDTO;

/**
 * @author hanjiewu
 *
 */
public interface ProductServices {
	
	public ProductDTO getProductDTO(int cId, int id);
	
	public int createProduct(ProductDTO product);
	
	public List<ProductDO> listProductsByCompanyId(int companyId, int pageNo, int pageSize);
	
	public List<ProductDTO> listProductDTOsByCompanyId(int companyId, int pageNo, int pageSize);
	
	public List<ProductDTO> listProductDTOsByCompanyId(int companyId);
	
	public int listProductCountByCompanyId(int companyId);
	
	public int updateProduct(ProductDTO product);
	
	public List<ProductDO> listLastestProducts(int count);
}
